package com.pet.web.controller.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 用户对象 sys_user
 *
 * @author pet
 */
@ApiModel
public class UserBody {
    /**
     * 商家名称
     */
    @ApiModelProperty(name = "merchantName", value = "商家名称")
    private String merchantName;

    /**
     * 商家说明
     */
    @ApiModelProperty(value = "商家说明")
    private String merchantTips;

    /**
     * 商家说明
     */
    @ApiModelProperty(value = "地址")
    private String address;

    /**
     * 商家微信
     */
    @ApiModelProperty(value = "商家微信")
    private String wechat;

    /**
     * 商家登录手机号
     */
    @ApiModelProperty(value = "商家登录手机号", required = true)
    private String mobile;

    /**
     * 商家电话
     */
    @ApiModelProperty(value = "商家预留手机号")
    private String contactMobile;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    public UserBody() {

    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantTips(String merchantTips) {
        this.merchantTips = merchantTips;
    }

    public String getMerchantTips() {
        return merchantTips;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getWechat() {
        return wechat;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符")
    @NotBlank(message = "手机号码不能为空")
    public String getMobile() {
        return mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getContactMobile() {
        return contactMobile;
    }

    public void setContactMobile(String contactMobile) {
        this.contactMobile = contactMobile;
    }
}
